import request from '../utils/request'


let model_name = 'user'
export function fetchList(query) {
    return request({
        url: '/admin/'+ model_name +'/list',
        method: 'get',
        params: query
    })
}

export function deleteRecord(query){
    return request({
        url: '/admin/'+ model_name + '/remove',
        method: 'get',
        params: query
    })
}



export function updateRecord(data){
    return request({
        url: '/admin/' + model_name+  '/update',
        method: 'post',
        data
    })
}

